package constructor.composite;

public class ClientComposite {
    public static void main(String[] args) {
        Origanization university = new University("清华大学", "清华是顶级学府");

        Origanization college = new College("计算机学院", "老牌学院");
        Origanization college2 = new College("土木学院", "学习土木");

        college.add(new Deparment("计算机科学与技术", "1"));
        college.add(new Deparment("网络工程", "2"));

        college2.add(new Deparment("土木1", "3"));
        college2.add(new Deparment("土木2", "4"));

        university.add(college);
        university.add(college2);

        college2.print();

    }
}
